package com.shop.service;

import com.shop.bean.Order_address;
import com.shop.bean.Orders;
import com.shop.util.Page;

import java.util.HashMap;
import java.util.List;


public interface IOrdersService {
    int addOrder(List<Integer> ids,List<Integer> quantities,Integer addressid,Integer userid);
    String payment(Integer id);

    int paymentSuccess(HashMap map);

    Orders getOrderByID(Integer id);

    int cancleOrder();

    List<Orders> getOrderByUserID(Integer userid);

    int getCount(String text);

    List<Orders> selectOrders  (Page page, String text);

    int deleteOrder(int id);

    Order_address getAddress(int orderid);

    int putOn(int orderid);

    int end(int orderid);

    int get(int orderid);

    String getDescription(Integer orderid);
}
